// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getNewsList = params => {
    return postRequest('/news/getByPage', params);
};
// 添加
export const addNews = params => {
    return postRequest('/news/insertOrUpdate', params);
};
// 编辑
export const editNews = params => {
    return postRequest('/news/insertOrUpdate', params);
};
// 删除
export const deleteNews = params => {
    return postRequest('/news/delByIds', params);
};

// 修改审核状态  为发布
export const updateStatus = params => {
    return postRequest('/news/updateStatus', params);
};
// 修改审核状态  为禁用
export const disableStatus = params => {
    return postRequest('/news/disableStatus', params);
};
